<?php

class Movie extends Model {

	protected $id;
	protected $title;
	protected $year;
	protected $directorID;
	protected $directorFirstName;
	protected $directorLastNameName;
	protected $rating;
	protected $noCopies;
	protected $price;
	
	function __construct($i, $t, $y, $di, $df, $dl, $r, $n, $p) {
		$this->id = $i;
		$this->title = $t;
		$this->year = $y;
		$this->directorID = $di;
		$this->directorFirstName = $df;
		$this->directorLastName = $dl;
		$this->rating = $r;
		$this->noCopies = $n;
		$this->price = $p;
	}
	
	function getId() {
		return $this->id;
	}
	
	function setId($i) {
		$this->id = $i;
	}
	
	function getTitle() {
		return $this->title;
	}
	
	function setTitle($t) {
		$this->title = $t;
	}
	
	function getYear() {
		return $this->year;
	}
	
	function setYear($y) {
		$this->year = $y;
	}
	
	function getDirectorID() {
		return $this->directorID;
	}
	
	function setDirectorID($di) {
		$this->directorID = $di;
	}
	
	function getDirectorFirstName() {
		return $this->directorFirstName;
	}
	
	function setDirectorFirstName($d) {
		$this->directorFirstName = $d;
	}
	
	function getDirectorLastName() {
		return $this->directorLastName;
	}
	
	function setDirectorLastName($d) {
		$this->directorLastName = $d;
	}
	
	function getRating() {
		return $this->rating;
	}
	
	function setRating($r) {
		$this->rating = $r;
	}
	
	function getNoCopies() {
		return $this->noCopies;
	}
	
	function setNoCopies($n) {
		$this->noCopies = $n;
	}
	
	function getPrice() {
		return $this->price;
	}
	
	function setPrice($p) {
		$this->price = $p;
	}

}


?>